package foop14bsp1.gui;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class ClientWorkerInfoFrame extends JFrame{
	
	private static final long serialVersionUID = 252921496198130149L;
	private JTextArea tracker;

    public ClientWorkerInfoFrame() {
    	
        //make sure the program exits when the frame closes
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setTitle("Mouse Client Frame");
        setSize(500,300);
        setLocationRelativeTo(null);
        
        //Using JTextArea to show status
        tracker = new JTextArea();
        tracker.setEditable(false);
        add(tracker);
        setVisible(true);     
    }
    
    public void log(String text) {
    	tracker.append(text + "\n");
    }
}
